package cn.xdf.docscan.ui

import android.graphics.PointF
import android.graphics.RectF

interface QuadOverlay {
    data class Detection(val corners: List<PointF>, val confidence: Float)
    fun updateDetection(detections: List<Detection>)
    fun clearDetection()
    val width: Int
    val height: Int
}

interface DocOverlay {
    data class Detection(
        val corners: List<PointF>,
        val confidence: Float,
        val bounds: RectF
    )
    fun updateDetection(detection: Detection)
    fun clearDetection()
    val width: Int
    val height: Int
}


